<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<!-- start -->
	<form method="post" enctype="multipart/form-data" class="J_ajaxForm" autocomplete="off" action='<yjd:url url="/merchant/add/submit"/>'>
		<div class="table_full">
			<table width="100%">
				<tr>
					<th width="200">供职机构:</th>
					<td>
						<select name="org_id" id="org_id" class="mr10" ${merchant.org_id > 0?"onfocus='this.blur()'":"" }>
							<c:forEach items="${orgids }" var="item">
								<option ${item.key==merchant.org_id?"selected='selected'":"" } value="${item.key }">${item.value }</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<th width="200">登陆账号:</th>
					<td>
						<input name="name" type="text" class="input length_5" value="${merchant.name}" ${!empty merchant.name?"readonly='readonly'":""}>
					</td>
				</tr>
				<tr>
					<th width="200">登陆密码:</th>
					<td>
						<input name="password" type="password" class="input length_5" value="">
					</td>
				</tr>
				<tr>
					<th>是否启用:</th>
					<td>
						<label><input name="status" type="radio" value="0" <c:if test="${merchant.status != 1}">checked</c:if>/>是</label>
						<label><input name="status" type="radio" value="1" <c:if test="${merchant.status == 1}">checked</c:if> />否</label>
					</td>
				</tr>
			</table>
		</div>
		<input class="btn btn_submit J_ajax_submit_btn" type="submit" value="确认保存">
	</form>
</div>